package com.syher.quartz.core.config.quartz.scheduled;

import org.quartz.SchedulerException;

import java.util.Date;

/**
 * Created by shenyuhang on 2018/3/7.
 */
public interface ScheduledCore {

    public void add(String name, String group, String cron) throws SchedulerException;

    public void add(String name, String group, Date start, Date end, Integer interval) throws SchedulerException;

    public void pause(String name, String group) throws SchedulerException;

    public void resume(String name, String group) throws SchedulerException;

    public void exec(String name, String group) throws SchedulerException;

    public boolean delete(String name, String group) throws SchedulerException;

    public void modifyTrigger(String name, String group, String cron) throws SchedulerException;
}
